package com.victor.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name = "picturebook")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Picturebook { // 绘本信息

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "p_id", unique = true, nullable = false, length = 11)
	private Integer pId;

	@Column(name = "p_name", length = 50)
	private String pName; // 绘本名称

	@Column(name = "p_author", length = 50)
	private String pAuthor; // 作者

	// @Column(name = "p_copyrightid", length = 50)
	// private String pCopyrightid;//版权方id

	@Column(name = "p_publishing", length = 50)
	private String pPublishing; // 出版社

	@Column(name = "p_abstract", length = 50)
	private String pAbstract; // 简介

	@Column(name = "p_coverphoto", length = 200)
	private String pCoverPhoto; // 封面路径

	@Column(name = "p_videopath", length = 50)
	private String pVideoPath; // 文件路径 视频/音频

	@Column(name = "p_price", length = 50)
	private String pPrice; // 价格

	@Column(name = "p_type", length = 50)
	private String pType; // 类型 1:绘本 2:音频

	@Column(name = "p_click", length = 50)
	private String pClick; // 点击量

	@Column(name = "p_date", length = 50)
	private String pDate; // 创建时间

}